package org.inspursc.s0517.health.common.entity;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;


/**
 * @author B_Dream
 * @date 2018/6/7 11:52
 */
@Entity(name = "sys_organization")
@Data
@DynamicUpdate
public class SysOrganization extends AbstractIdEntity {

    /**
     * 组织机构名字
     */
    private String name;

    /**
     * 域名
     */
    private String domainName;

//    private String address; //institution location
//
//    private String phoneNum; //institution phone number
//
//    private String email; //email

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

//    public String getAddress() {
//        return address;
//    }
//
//    public void setAddress(String address) {
//        this.address = address;
//    }
//
//    public String getPhoneNum() {
//        return phoneNum;
//    }
//
//    public void setPhoneNum(String phoneNum) {
//        this.phoneNum = phoneNum;
//    }
//
//    public String getEmail() {
//        return email;
//    }
//
//    public void setEmail(String email) {
//        this.email = email;
//    }

    /**
     * 所属问卷ID集合
     */

    @Column(name = "own_survey")
    private String ownSurvey;

    /**
     * 企业logo地址
     */
    private String logo;

    /**
     * 说明描述
     */
    private String description;


    @Override
    public String toString() {
        return "SysOrganization{" +
                "name='" + name + '\'' +
                ", domainName='" + domainName + '\'' +
                ", logo='" + logo + '\'' +
                ", description='" + description + '\'' +
                ", id=" + id +
                '}';
    }

}
